From : Peter Liebetrau (zippo@edina.xnc.com)
Subject : Select True : a trick to allow multiple branching
>I would like to see a more reasonable select/case arrangement, where the
>case part can represent a range of elements, eg
>SELECT myVar
> CASE value1:
> CASE value2,value4:
> DEFAULT:
>END SELECT
hmmm ... there is a way to do this. It`s a little bit tricky, but it works.
Try this ...
Select -1 ; or Select True
Case myVar=value1
Case myVar=value2 OR myVar=value4
; even this is possible
Case myVar=value5 AND other$="Whow"
End Select
All logical and arithmetical combinations are possible.